'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  //router.get('/', controller.home.index);
  router.get('/users', controller.users.index);
  router.get('/users/:id', controller.users.show);
  router.get('/users/:id/edit', controller.users.edit)
  router.put('/users/:id/update', controller.users.update)
  router.delete('/users/:id', controller.users.destroy)
  router.post('/users', controller.users.create)
};
